home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / cqa.zip / HOWBIG.BCP < prev    next >
Text File  |  1991-04-01  |  1KB  |  20 lines

  1. QUESTION:   How big is the biggest source file that BC++ can compile?
  2.  
  3. ANSWER:     There's no easy measure of the size of a file that can be
  4.             compiled by BC++; it's more a function of complexity: large
  5.             switch statements, deeply nested ors, ifs, whiles, etc. take
  6.             up more memory.  So if you're running out of memory in a
  7.             compile, simplify.  And compilation is basically done function
  8.             by function, so shorter files won't help much.  It's the
  9.             complexity within a function that will make the compiler hit
  10.             its limits.
  11.  
  12.             If you are developing Windows applications, there are lots of
  13.             ways to make your 'winproc' smaller.  One of the best is to
  14.             ignore the usual programming conventions that have grown up
  15.             around windows and do it right.  For a small example of that
  16.             sort of thing, take a look at the TODO demo that comes with BC.
  17.             There are no deeply nested switch statements; not only does
  18.             this effectively solve the problem but it has the added effect
  19.             of making code readable.
  20.